import { i18nText } from '@/utils/i18n'

// 订单状态
export const orderStatusList = [
  {
    name: i18nText('common.all', '全部'),
    status: 'ALL'
  },
  {
    name: i18nText('order.status.pending', '未付款'),
    status: 'UNPAID'
  },
  {
    name: i18nText('order.status.paymentComplete', '已付款'),
    status: 'PAID'
  },
  {
    name: i18nText('order.status.notYetShipped', '待发货'),
    status: 'UNDELIVERED'
  },
  {
    name: i18nText('order.status.shipped', '已发货'),
    status: 'DELIVERED'
  },
  {
    name: i18nText('order.status.completed', '已完成'),
    status: 'COMPLETED'
  },
  {
    name: '待核验',
    status: 'TAKE'
  },
  {
    name: i18nText('order.status.canceled', '已取消'),
    status: 'CANCELLED'
  },
  {
    name: '待提货',
    status: 'STAY_PICKED_UP'
  }
]
// 订单售后状态
export const afterSaleStatusList = [
  {
    name: i18nText('afterSaleOrder.status.underReview', '申请中'),
    status: 'APPLY'
  },
  {
    name: i18nText('afterSaleOrder.status.approved', '通过'),
    status: 'PASS'
  },
  {
    name: i18nText('afterSaleOrder.status.rejected', '拒绝'),
    status: 'REFUSE'
  },
  {
    name: i18nText('afterSaleOrder.status.returned', '买家退货，待卖家收货'),
    status: 'BUYER_RETURN'
  },
  {
    name: i18nText('afterSaleOrder.status.sellerConfirmsReceiptOfGoods', '卖家确认收货'),
    status: 'SELLER_CONFIRM'
  },
  {
    name: i18nText('afterSaleOrder.status.sellerHasTerminatedAfterSalesService', '卖家终止售后'),
    status: 'SELLER_TERMINATION'
  },
  {
    name: i18nText('afterSaleOrder.status.buyerConfirmsReceiptOfGoods', '买家确认收货'),
    status: 'BUYER_CONFIRM'
  },
  {
    name: i18nText('afterSaleOrder.status.buyerCancelsAfterSalesService', '买家取消售后'),
    status: 'BUYER_CANCEL'
  },
  {
    name: i18nText('afterSaleOrder.status.completed', '完成售后'),
    status: 'COMPLETE'
  },
  {
    name: i18nText('afterSaleOrder.status.waitingForSellerRefund', '等待平台退款'),
    status: 'WAIT_REFUND'
  }
]
